<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>后台管理</title>
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/layui/css/layui.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/admin.css" />
</head>
<body>
<div class="wrap-container">
  <form class="layui-form edit-form" method="post" action="{:url()}" style="width: 90%;padding-top: 20px;">
    {present name="info.id"}
    <input type="hidden" name="id" value="{$info.id|default=''}" />
    {/present}
    
    <div class="layui-form-item">
      <label class="layui-form-label">用户ID：</label>
      <div class="layui-input-inline">
        <input type="text" name="title" value="{$info.aid|default='0'}" required lay-verify="required" placeholder="请输入代理ID" autocomplete="off" class="layui-input">
      </div>
      <div class="layui-form-mid layui-word-aux" style="color:#f00">默认系统公告，如果填写代理ID为用户公告</div>
    </div>
    
    <div class="layui-form-item">
      <label class="layui-form-label">公告标题：</label>
      <div class="layui-input-block">
        <input type="text" name="title" value="{$info.title|default=''}" required lay-verify="required" placeholder="请输入公告标题" autocomplete="off" class="layui-input">
      </div>
    </div>
    
    <div class="layui-form-item">
          <label class="layui-form-label">公告内容：</label>
          <div class="layui-input-block">
            <textarea name="content" placeholder="请输入公告内容" required lay-verify="required" class="layui-textarea" style="height:250px;">{$info.content|default=''}</textarea>
          </div>
        </div>
    
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn layui-btn-normal ajax-post-btn" lay-submit lay-filter="formDemo">提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>
</div>
<script src="__STATIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script> 
<script src="__STATIC__/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="__STATIC__/js/common.js" type="text/javascript" charset="utf-8"></script> 
<script>
			//Demo
			layui.use(['form'], function() {
				var form = layui.form();
				form.render();
				//监听提交
				form.on('submit(formDemo)', function(data) {
					//layer.msg(JSON.stringify(data.field));
					ajax_post('edit-form',true,'iframe166','');
					return false;
				});
				
			});

		
{present name="info.id"}
$(function(){
	
});
{/present}
</script>


</body>
</html>